package com.itheima.untils;

public class BaseContext {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();


    public static void setEmployeeId(Long id){
        threadLocal.set(id);
    }

    public static Long getEmployeeId(){
        Long aLong = threadLocal.get();
        return aLong;
    }
    public static void clearCurrentId(){
        threadLocal.remove();
    }

}
